Skip to content

feat: render default slot in stubs #717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

eddyerburgh
Copy link
Member

Render slots in default stubs.

Breaking change

Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - question, what impact will this have on the public api?

What is the procedure for a breaking change like this? Adding a notice to people using the version prior to the breaking changes?

@eddyerburgh
Copy link
Member Author

It's a breaking change because anyone who relies on shallowMount not including slot children will have to change their code.

Because VTU is still in beta, we can release a breaking change in the next version. Once VTU is 1.x we will only add breaking changes in major versions.

@@ -79,7 +79,9 @@ function createBlankStub (originalComponent: Component) {
return {
...getCoreProperties(originalComponent),
render (h) {
return h(name)
return h(`${originalComponent.name}-stub`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line does not need to change.

const name = `${originalComponent.name}-stub`

@eddyerburgh
Copy link
Member Author

Closed in favor of #782

@eddyerburgh eddyerburgh deleted the render-slots-in-stubs branch July 20, 2018 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants